﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_Flow_AddBangdingTeamLeader_V2]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_Flow_AddBangdingTeamLeader_V2];
GO
CREATE PROCEDURE [dbo].[sproc_Flow_AddBangdingTeamLeader_V2]
    @FlowID int,
    @StepID int,
    @TeamID int
AS
BEGIN
SET NOCOUNT ON;

INSERT INTO dbo.UDS_Flow_Member_Bind (Flow_ID,Step_ID,Obj_ID,Obj_Type)
    VALUES(@FlowID, @StepID, @TeamID, /* team leader */5);

END
GO